package com.oda.resultats;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.widget.TextView;

import com.activity.colza.R;

public class ODA_Res_Activity extends Activity {
	
	Bundle bundle;
	TextView biomasse,errorrate,lai,expazote;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_oda__res);
		bundle=this.getIntent().getExtras();
		((TextView) findViewById(R.id.val_biomasse)).setText(bundle.getFloat("biomasse")+" kg/m²");
		((TextView) findViewById(R.id.val_error_rate)).setText(bundle.getFloat("errorrate")+" %");
		((TextView) findViewById(R.id.val_lai)).setText(bundle.getFloat("lai")+"");
		((TextView) findViewById(R.id.val_exp_azote)).setText(bundle.getFloat("expazote")+" kg/ha");		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.oda__res_, menu);
		getActionBar().setDisplayHomeAsUpEnabled(true);
		return true;
	}

}
